/*
 * create:2016年1月7日 下午10:01:21
 * author:wangds  
 */

package net.wangds.common.test;

import junit.framework.TestCase;
import net.wangds.common.GeneralParentObject;

import org.junit.Test;
import org.slf4j.Logger;

/**
 * .
 * 
 * @author wangds
 *
 */
public class CommonTestCase {
  @Test
  public void test() {
    Logger logger = GeneralParentObject.staticLogger(CommonTestCase.class);
    String name = logger.getName();
    TestCase.assertEquals(name, CommonTestCase.class.getName());
    logger = GeneralParentObject.staticLogger(null);
    TestCase.assertNotNull(logger.getName());
    new GeneralParentObject() {
      {
        this.getLogger();
      }
    };
  }

}
